package cn.iocoder.yudao.module.security.controller.admin.device.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 设备接入分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SecurityDevicePageReqVO extends PageParam {

    @Schema(description = "IP地址")
    private String ipAddress;

    @Schema(description = "MAC地址")
    private String macAddress;

    @Schema(description = "设备来源", example = "1")
    private String sourceType;

    @Schema(description = "最后接入时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] lastOnlineTime;

    @Schema(description = "最后离线时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] lastOfflineTime;

    @Schema(description = "接入总时长")
    private BigDecimal onlineHour;

    @Schema(description = "设备状态", example = "1")
    private String deviceStatus;

    @Schema(description = "状态（0正常 1停用）", example = "1")
    private Integer status;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "设备用户名", example = "赵六")
    private String deviceUsername;

    @Schema(description = "设备密码")
    private String devicePassword;

    @Schema(description = "CPU使用率")
    private BigDecimal deviceCpu;

    @Schema(description = "内存使用率")
    private BigDecimal deviceMemory;

    @Schema(description = "磁盘")
    private BigDecimal deviceDisk;

    @Schema(description = "设备别名")
    private String deviceAlias;

    @Schema(description = "设备位置")
    private String deviceLocation;

}